﻿<%@taglib prefix="s" uri="/struts-tags"%>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
//option explicit
//'强制浏览器重新访问服务器下载页面，而不是从缓存读取页面
//Response.Buffer = True 
//Response.Expires = -1
//Response.ExpiresAbsolute = Now() - 1 
//Response.Expires = 0 
//Response.CacheControl = "no-cache" 
//'主要是使随机出现的图片数字随机
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员登录</title>

<link rel="stylesheet" href="inc/southidc.css">
<script language=javascript>
<!--
function SetFocus()
{
if (document.Login.UserName.value=="")
	document.Login.UserName.focus();
else
	document.Login.UserName.select();
}
function CheckForm()
{
	if(document.Login.UserName.value=="")
	{
		alert("请输入用户名！");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.Password.value == "")
	{
		alert("请输入密码！");
		document.Login.Password.focus();
		return false;
	}
	if (document.Login.CheckCode.value==""){
       alert ("请输入您的验证码！");
       document.Login.CheckCode.focus();
       return(false);
    }
}

function CheckBrowser() 
{
  var app=navigator.appName;
  var verStr=navigator.appVersion;
  if (app.indexOf('Netscape') != -1) {
    alert("提示：\n    你使用的非IE浏览器，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  } 
  else if (app.indexOf('Microsoft') != -1) {
    if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
      alert("提示：\n    您的浏览器版本太低，可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  }
}
//-->
</script>
<style type="text/css">
<!--
.STYLE3 {color: #336600}
-->
</style>
</head>
<body class="bgcolor">
<table cellspacing="0" cellpadding="0" width="555" border="0" style="border-collapse: collapse" bordercolor="#111111" align="center">
  <tbody>
    <tr>
      <td width="588">
        <div align="center">
          <center>
            <table cellspacing="0" cellpadding="0" width="558" border="0" style="border-collapse: collapse" bordercolor="#111111" height="237">
              <tbody>
                <tr>
                  <td valign="top" width="198" rowspan="4" height="237"> <img height="52" src="../images/aaa_1.gif" width="198"><img height="41" src="../images/aaa_a1.gif" width="198"><img height="53" src="../images/aaa_a2.gif" width="198"><img height="72" src="../images/aaa_a3.gif" width="198"></td>
                  <td valign="top" height="87" width="360"> <img border="0" src="../images/touradmin1.gif" width="253" height="52"><img height="52" src="../images/aaa_r4.gif" width="77">
                      <div align="center">
                        <center>
                          <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="80%" id="AutoNumber1">
                            <tr>
                              <td width="100%">
                                <p align="right"> <font face="Arial" size="4" color="#000080"> </font> </td>
                            </tr>
                          </table>
                        </center>
                    </div></td>
                </tr>
                <tr>
                  <td valign="top" width="360" height="104">
                    <div align="center"> </div>
      <form name="Login" action="login.action" method="post" target="_parent" onSubmit="return CheckForm();">
                      <div align="center">
                        <div align="center">
                          <table width="100%" border="0" cellspacing="8" cellpadding="0" align="center">
                            <tr align="center">
                              <td height="38" colspan="2"><font color="#000000" size="3"><strong>管理员登录</strong></font> </td>
                            </tr>
                            <tr>
                              <td align="right">用户名称<font color="#FFFFFF">：</font></td>
                              <td><input name="user.name"  type="text"  id="UserName" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
                            </tr>
                            <tr>
                              <td align="right">用户密码<font color="#FFFFFF">：</font></td>
                              <td><input name="user.password"  type="password" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
                            </tr>
                            <tr>
                              <td align="right">验 证 码：</td>
                              <td><input name="CheckCode" size="6" maxlength="4" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#E1F4EE';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); ">
                                  <span class="STYLE3">请在左边输入</span> <img src="inc/checkcode.asp"><!--验证码由系统生成，返回图片，放入session里，当此页面提交时，判断checkCode的值与session里的验证值是否相等--></td>
                            </tr>
                            <tr>
                              <td colspan="2"><div align="center"> &nbsp; &nbsp;
                                      <input   type="submit" name="Submit" value=" 确&nbsp;认 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #E1F4EE; border: 1 solid #E1F4EE" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#E1F4EE'">
&nbsp;
        <input name="reset" type="reset"  id="reset2" value=" 清&nbsp;除 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #E1F4EE; border: 1 solid #E1F4EE" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#E1F4EE'">
        <br>
                              </div></td>
                            </tr>
                          </table>
                        </div>
                      </div>
                  </form></td>
                </tr>
                <tr>
                  <td valign="top" width="360" height="36">
                    <p align="center"> </td>
                </tr>
                <tr>
                  <td valign="top" width="360" height="10">&nbsp;</td>
                </tr>
              </tbody>
            </table>
          </center>
      </div></td>
    </tr>
  </tbody>
</table>
<p>&nbsp;</p>
  
  <br>
<script language="JavaScript" type="text/JavaScript">
CheckBrowser();
SetFocus(); 
</script>
</body>
</html>
